package entity.page;

import java.util.Date;

public class DetailPage {

    private String title;   // 标题
    private String contents;  // 内容
    private Date publishtime; // 发布时间
    private Date modifytime;  // 修改时间（应该是管理员修改）
    private Date regtime;  // 注册时间
    private String author;  // 作者
    private String face;  // 作者头像
    private Boolean sex;  // 作者性别
    private Integer type;  // 作者组别
    private Integer id;  // 楼号
    private Integer uid;  // 作者id

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Date getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(Date publishtime) {
        this.publishtime = publishtime;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public Date getRegtime() {
        return regtime;
    }

    public void setRegtime(Date regtime) {
        this.regtime = regtime;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "DetailPage{" +
                "title='" + title + '\'' +
                ", contents='" + contents + '\'' +
                ", publishtime=" + publishtime +
                ", modifytime=" + modifytime +
                ", regtime=" + regtime +
                ", author='" + author + '\'' +
                ", face='" + face + '\'' +
                ", sex=" + sex +
                ", type=" + type +
                ", id=" + id +
                ", uid=" + uid +
                '}';
    }
}
